Advanced Architecting on AWS
S3 Advanced โข Lake Formation โข Athena โข Redshift โข Data Lake
| Feature | Purpose | Details |
|---|---|---|
| Cross-Region Replication | DR, compliance, latency | Async replication. Can replicate to different account. |
| Same-Region Replication | Compliance copies, log aggregation | Same region, different bucket (even same account) |
| Object Lock | WORM compliance | Governance mode (admin bypass) or Compliance mode (immutable) |
| S3 Access Points | Simplified access management | Named endpoints with unique policies. Per-app access. |
| S3 Intelligent-Tiering | Auto-tiering | Moves objects between tiers based on access patterns |
Amazon Athena
Serverless SQL on S3. Presto-based. Pay $5/TB scanned. Use columnar formats (Parquet/ORC) to reduce cost. Federated queries to RDS/DynamoDB.
Redshift Serverless
Data warehouse without cluster management. Auto-scales. Pay for compute (RPU-hours). Complex analytics, joins, aggregations at PB scale.
# Enable versioning (required for replication) aws s3api put-bucket-versioning --bucket source-bucket \ --versioning-configuration Status=Enabled # Configure cross-region replication aws s3api put-bucket-replication --bucket source-bucket \ --replication-configuration file://replication.json # Run an Athena query aws athena start-query-execution \ --query-string "SELECT * FROM logs WHERE date = '2025-01-15' LIMIT 100" \ --work-group primary \ --query-execution-context Database=analytics
Q1: A financial company must store audit logs in S3 that cannot be deleted or modified for 7 years, even by administrators. Which feature should they use?
A) S3 Versioning B) Object Lock (Governance mode) C) Object Lock (Compliance mode) D) Bucket policy deny
Q2: A global e-commerce platform needs sub-second read/write latency for their product catalog in all regions. Which is the best solution?
A) RDS Multi-AZ B) Aurora Global Database C) DynamoDB Global Tables D) ElastiCache Global Datastore
S3 Advanced
CRR/SRR replication. Object Lock (WORM). Access Points. Intelligent-Tiering. Lifecycle policies.
Data Lake
S3 foundation + Glue catalog + Lake Formation governance. Raw โ Processed โ Curated zones.
Analytics
Athena: serverless SQL on S3. Redshift Serverless: PB-scale warehouse. Use Parquet for cost savings.
Global Tables
DynamoDB multi-region active-active. Sub-second replication. Last-writer-wins conflict resolution.